From: David Härdeman Date: Fri, 10 Oct 2025 08:16:35 +0000 (+0200) Subject: luci-mod-network: add global DUID cfg option X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=2f000b5e155f2526a5c64305254ef15b890987ea;p=project%2Fluci.git luci-mod-network: add global DUID cfg option This exposes the default DHCP DUID config option in the LuCI interface. For reference: https://github.com/openwrt/openwrt/pull/20359 https://github.com/openwrt/odhcpd/pull/274 Signed-off-by: David Härdeman --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 548bc65fe4..5768304e66 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1659,6 +1659,11 @@ return view.extend({ _('This prefix is randomly generated at first install.')); o.datatype = 'cidr6'; + o = s.option(form.Value, 'dhcp_default_duid', _('Default DUID'), + _('The default DUID for this device, used when acting as a DHCP server or client. The client identifier can be overridden on a per-interface basis.') + '
' + + _('This identifier is randomly generated the first time the device is booted.')); + o.datatype = 'and(rangelength(6,260),hexstring)'; + const l3mdevhelp1 = _('%s services running on this device in the default VRF context (ie., not bound to any VRF device) shall work across all VRF domains.'); const l3mdevhelp2 = _('Off means VRF traffic will be handled exclusively by sockets bound to VRFs.');